//时间更新
updateTime();
function updateTime() {
    let time = new Date();
    document.querySelector('.time').innerText = time.getFullYear() + '-' + (time.getMonth() + 1) + '-' + time.getDate() + ' '
        + time.getHours() + ':' + time.getMinutes() + ':' + time.getSeconds();
    setTimeout(updateTime, 1000);
}

function resize() {
  var winH = window.innerHeight;
  var winW = window.innerWidth;
  var ratio = winW / winH;
  var scale = winH / 1080;
  $('body').css('width', ratio * 1080);
  $('body').css('transform', 'scale(' + scale + ',' + scale);
}
resize();
$(window).resize(function () {
  resize();
});